package cn.wolfcode.luowowo.article.domain;


import cn.wolfcoe.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Document("AnswerComment")
public class AnswerComment implements Serializable{
    public static final int TRAVLE_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int TRAVLE_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String id;
    private Long answerId;  //回答id
    private String answerTitle; //回答标题


    private Long userId;    //用户id
    private String username; //用户名
    private String city;       //城市
    private int level;          //等级
    private String headUrl;   // 用户头像


    private int type = TRAVLE_COMMENT_TYPE_COMMENT; //评论类别


    private Date createTime; //创建时间
    private String content;  //评论内容


    private AnswerComment refComment;  //关联的评论

}